#ifndef WINSTATE_H
#define WINSTATE_H

#include <SDL.h>
#include "CGameState.h"
#include "CImage.h"


class CFont;

class WinState : public CGameState
{
    public:

    void init();
    void cleanup();

    void pause();
    void resume();

    void handleEvents(CGame* game);
    void update(CGame* game);
    void draw(CGame* game);

    // Implement Singleton Pattern
    static WinState* instance()
    {
        return &m_WinState;
    }

    protected:

    WinState() {}

    private:

    static WinState m_WinState;
    bool firstLoad;

    CImage* pauseSprite;
    CFont*  pauseFont;

    // controle de audio
    irrklang::ISoundEngine* audio;
    irrklang::ISoundSource* winTheme;
};


#endif // WINSTATE_H
